﻿﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LinqToSqlDemo.aspx.cs" Inherits="LinqToSqlDemo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True"  AutoGenerateEditButton="True" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit"  OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" PageSize="2" AutoGenerateDeleteButton="True" OnRowDeleting="GridView1_RowDeleting"></asp:GridView>
            <br />
            查询：<asp:TextBox ID="TbKeyword" runat="server"></asp:TextBox>
            <asp:Button ID="BtnSearch" runat="server" OnClick="BtnSearch_Click" Text="查询" />
            <br />
            <br />
            <asp:Panel ID="Panel1" runat="server">
                标题：<asp:TextBox ID="TbTitle" runat="server"></asp:TextBox>
                <br />
                正文：<asp:TextBox ID="TbContent" runat="server" TextMode="MultiLine"></asp:TextBox>
                <br />
                作者：<asp:TextBox ID="TbAuthor" runat="server"></asp:TextBox>
                <br />
                分类：<asp:DropDownList ID="DdlCategory" runat="server">
                </asp:DropDownList>
                <br />
                <asp:Button ID="BtnAdd" runat="server" OnClick="BtnAdd_Click" Text="提交" />
            </asp:Panel>
        </div>
    </form>
</body>
</html>